import java.util.Scanner;

public class arraydemo2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入数据个数:");
        int a = sc.nextInt();

        int[] arr = new int[a];
        System.out.println("请输入数组数据:");
        for(int i= 0;i<a;i++)
        {
            arr[i] = sc.nextInt();
        }
        System.out.println("以下是数组输出:");
        for (int i = 0; i < a; i++) {
            System.out.println(arr[i]);
        }
    }
}
